import time
def get_time(fn):
    def metric(*args,**kw):
        stert_time = time.time()
        fn(*args,**kw)
        # end_time = time.time()
        print(time.time()-stert_time)
    return metric    

@get_time
def fn1():
    list1 = [i for i in range(1,20001)]
    for t in range(len(list1)):
        print(list1[t])
fn1()
# @metric  